package palidino76.rs2.io.packets;

import palidino76.rs2.player.Player;
import palidino76.rs2.player.items.PlayerItems;

public class ItemOnItem implements Packet {

	/**
	 * Handles item on item packet.
	 * @param Player p The player which the packet will be created for.
	 * @param packetId the packet id which is activated (Which handles this class)
	 * @param packetSize the amount of bytes being received for the packet.
	 */
	public void handlePacket(Player player, int packetId, int packetSize) {
		if (player == null)
			return;
		/**
		 * These are the correct stream methods
		 * for item on item packet.
		 */
		int usedWith = player.stream.readSignedWordBigEndian();
        	int itemUsed = player.stream.readSignedWordA();
		PlayerItems pi = new PlayerItems();
				if (itemUsed == 7329 && usedWith == 1511 || itemUsed == 1511 && usedWith == 7329) { // red
			pi.deleteItem(player, 7329, pi.getItemSlot(player, 7329), 1);
			pi.deleteItem(player, 1511, pi.getItemSlot(player, 1511), 1);
			pi.addItem(player, 7404, 1);
			player.frames.sendMessage(player, "You rub the firelighter on the logs to make red logs.");
		}
		if (itemUsed == 7330 && usedWith == 1511 || itemUsed == 1511 && usedWith == 7330) { // green
			pi.deleteItem(player, 7330, pi.getItemSlot(player, 7330), 1);
			pi.deleteItem(player, 1511, pi.getItemSlot(player, 1511), 1);
			pi.addItem(player, 7405, 1);
			player.frames.sendMessage(player, "You rub the firelighter on the logs to make green logs.");
		}
		if (itemUsed == 7331 && usedWith == 1511 || itemUsed == 1511 && usedWith == 7331) { // blue
			pi.deleteItem(player, 7331, pi.getItemSlot(player, 7331), 1);
			pi.deleteItem(player, 1511, pi.getItemSlot(player, 1511), 1);
			pi.addItem(player, 7406, 1);
			player.frames.sendMessage(player, "You rub the firelighter on the logs to make blue logs.");
		}
		if (itemUsed == 10326 && usedWith == 1511 || itemUsed == 1511 && usedWith == 10326) { // purple
			pi.deleteItem(player, 10326, pi.getItemSlot(player, 10326), 1);
			pi.deleteItem(player, 1511, pi.getItemSlot(player, 1511), 1);
			pi.addItem(player, 10329, 1);
			player.frames.sendMessage(player, "You rub the firelighter on the logs to make purple logs.");
		}
		if (itemUsed == 10327 && usedWith == 1511 || itemUsed == 1511 && usedWith == 10327) { // white
			pi.deleteItem(player, 10327, pi.getItemSlot(player, 10327), 1);
			pi.deleteItem(player, 1511, pi.getItemSlot(player, 1511), 1);
			pi.addItem(player, 10328, 1);
			player.frames.sendMessage(player, "You rub the firelighter on the logs to make white logs.");
		}
				if (itemUsed == 590 && usedWith == 1511 || itemUsed == 1511 && usedWith == 590) {
			player.addSkillXP(100 ,11);
			player.requestAnim(733, 0);
			player.frames.createGlobalObject(2732, player.heightLevel, player.absX, player.absY, 0, 10);
			player.objectX = player.absX;
			player.objectY = player.absY;
			player.objectHeight = player.heightLevel;
			pi.deleteItem(player, 1511, pi.getItemSlot(player, 1511), 1);
			player.frames.sendMessage(player, "You set the logs on fire.");
			player.fmwalk(player.absY, player.absY);
			player.firedelay = 100;
		}
		if (itemUsed == 590 && usedWith == 1521 || itemUsed == 1521 && usedWith == 590) {
			if (player.skillLvl[11] >= 15) {
				player.addSkillXP(100 ,11);
				player.requestAnim(733, 0);
				player.frames.createGlobalObject(2732, player.heightLevel, player.absX, player.absY, 0, 10);
				player.objectX = player.absX;
				player.objectY = player.absY;
				player.objectHeight = player.heightLevel;
				pi.deleteItem(player, 1521, pi.getItemSlot(player, 1521), 1);
				player.frames.sendMessage(player, "You set the logs on fire.");
				player.fmwalk(player.absY, player.absY);
				player.firedelay = 100;
			}
		}
		if (itemUsed == 590 && usedWith == 1519 || itemUsed == 1519 && usedWith == 590) {
			if (player.skillLvl[11] >= 30) {
				player.addSkillXP(100 ,11);
				player.requestAnim(733, 0);
				player.frames.createGlobalObject(2732, player.heightLevel, player.absX, player.absY, 0, 10);
				player.objectX = player.absX;
				player.objectY = player.absY;
				player.objectHeight = player.heightLevel;
				pi.deleteItem(player, 1519, pi.getItemSlot(player, 1519), 1);
				player.frames.sendMessage(player, "You set the logs on fire.");
				player.fmwalk(player.absY, player.absY);
				player.firedelay = 100;
			}
		}
		if (itemUsed == 590 && usedWith == 1517 || itemUsed == 1517 && usedWith == 590) {
			if (player.skillLvl[11] >= 45) {
				player.addSkillXP(100 ,11);
				player.requestAnim(733, 0);
				player.frames.createGlobalObject(2732, player.heightLevel, player.absX, player.absY, 0, 10);
				player.objectX = player.absX;
				player.objectY = player.absY;
				player.objectHeight = player.heightLevel;
				pi.deleteItem(player, 1517, pi.getItemSlot(player, 1517), 1);
				player.frames.sendMessage(player, "You set the logs on fire.");
				player.fmwalk(player.absY, player.absY);
				player.firedelay = 100;
			}
		}
		if (itemUsed == 590 && usedWith == 1515 || itemUsed == 1515 && usedWith == 590) {
			if (player.skillLvl[11] >= 60) {
				player.addSkillXP(100 ,11);
				player.requestAnim(733, 0);
				player.frames.createGlobalObject(2732, player.heightLevel, player.absX, player.absY, 0, 10);
				player.objectX = player.absX;
				player.objectY = player.absY;
				player.objectHeight = player.heightLevel;
				pi.deleteItem(player, 1515, pi.getItemSlot(player, 1515), 1);
				player.frames.sendMessage(player, "You set the logs on fire.");
				player.fmwalk(player.absY, player.absY);
				player.firedelay = 100;
			}
		}
		if (itemUsed == 590 && usedWith == 1513 || itemUsed == 1513 && usedWith == 590) {
			if (player.skillLvl[11] >= 75) {
				player.addSkillXP(100 ,11);
				player.requestAnim(733, 0);
				player.frames.createGlobalObject(2732, player.heightLevel, player.absX, player.absY, 0, 10);
				player.objectX = player.absX;
				player.objectY = player.absY;
				player.objectHeight = player.heightLevel;
				pi.deleteItem(player, 1513, pi.getItemSlot(player, 1513), 1);
				player.frames.sendMessage(player, "You set the logs on fire.");
				player.fmwalk(player.absY, player.absY);
				player.firedelay = 100;
			}
		}
		if (itemUsed == 946 && usedWith == 1511 || itemUsed == 1511 && usedWith == 946) {
			player.fletchType = 1;
			player.frames.removeChatboxInterface(player);
			player.frames.showChatboxInterface(player, 304);
			player.frames.addInterfaceItem(player, 304, 2, 175, 52);
			player.frames.showChatboxInterface(player, 304);
			player.frames.addInterfaceItem(player, 304, 3, 175, 50);
			player.frames.showChatboxInterface(player, 304);
			player.frames.addInterfaceItem(player, 304, 4, 175, 48);
		}
		if (itemUsed == 946 && usedWith == 1521 || itemUsed == 1521 && usedWith == 946) {
			player.fletchType = 2;
			player.frames.removeChatboxInterface(player);
			player.frames.showChatboxInterface(player, 303);
			player.frames.addInterfaceItem(player, 303, 2, 175, 54);
			player.frames.showChatboxInterface(player, 303);
			player.frames.addInterfaceItem(player, 303, 3, 175, 56);
		}
		if (itemUsed == 946 && usedWith == 1513 || itemUsed == 1513 && usedWith == 946) {
			player.fletchType = 6;
			player.frames.removeChatboxInterface(player);
			player.frames.showChatboxInterface(player, 303);
			player.frames.addInterfaceItem(player, 303, 2, 175, 72);
			player.frames.showChatboxInterface(player, 303);
			player.frames.addInterfaceItem(player, 303, 3, 175, 70);
		}


		// Gorak claws
		if(itemUsed == 9016 && usedWith == 233 || itemUsed == 233 && usedWith == 9016) {
			pi.addItem(player, 9018, 1);
			pi.deleteItem(player, 9016, pi.getItemSlot(player,9016), 1);  
			player.requestAnim(364, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		// Bird's nest
		if(itemUsed == 5075 && usedWith == 233 || itemUsed == 233 && usedWith == 5075) {
			pi.addItem(player, 6693, 1);
			pi.deleteItem(player, 5075, pi.getItemSlot(player,5075), 1);  
			player.requestAnim(364, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		// Blue dragon scale
		if(itemUsed == 243 && usedWith == 233 || itemUsed == 233 && usedWith == 243) {
			pi.addItem(player, 241, 1);
			pi.deleteItem(player, 243, pi.getItemSlot(player,243), 1);  
			player.requestAnim(364, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		// Chocolate bar
		if(itemUsed == 1973 && usedWith == 233 || itemUsed == 233 && usedWith == 1973) {
			pi.addItem(player, 1975, 1);
			pi.deleteItem(player, 1973, pi.getItemSlot(player,1973), 1);  
			player.requestAnim(364, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		// Unicorn horn
		if(itemUsed == 237 && usedWith == 233 || itemUsed == 233 && usedWith == 237) {
			pi.addItem(player, 235, 1);
			pi.deleteItem(player, 237, pi.getItemSlot(player,237), 1);  
			player.requestAnim(364, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		// Desert goat horn
		if(itemUsed == 9735 && usedWith == 233 || itemUsed == 233 && usedWith == 9735) {
			pi.addItem(player, 9736, 1);
			pi.deleteItem(player, 9735, pi.getItemSlot(player,9735), 1);  
			player.requestAnim(364, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}

// Making unfinished potions by GaMePaPa
		//Make Guam Potion (unf)
		if(itemUsed == 249 && usedWith == 227 || itemUsed == 227 && usedWith == 249) {
			pi.addItem(player, 91, 1);
			pi.deleteItem(player, 249, pi.getItemSlot(player,249), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Marrentill Potion (unf)
		if(itemUsed == 251 && usedWith == 227 || itemUsed == 227 && usedWith == 251) {
			pi.addItem(player, 93, 1);
			pi.deleteItem(player, 251, pi.getItemSlot(player,251), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Tarromin Potion (unf)
		if(itemUsed == 253 && usedWith == 227 || itemUsed == 227 && usedWith == 253) {
			pi.addItem(player, 95, 1);
			pi.deleteItem(player, 253, pi.getItemSlot(player,253), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Harralander Potion (unf)
		if(itemUsed == 255 && usedWith == 227 || itemUsed == 227 && usedWith == 255) {
			pi.addItem(player, 97, 1);
			pi.deleteItem(player, 253, pi.getItemSlot(player,253), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Ranarr Potion (unf)
		if(itemUsed == 257 && usedWith == 227 || itemUsed == 227 && usedWith == 257) {
			pi.addItem(player, 99, 1);
			pi.deleteItem(player, 257, pi.getItemSlot(player,257), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Irit Potion (unf)
		if(itemUsed == 259 && usedWith == 227 || itemUsed == 227 && usedWith == 259) {
			pi.addItem(player, 101, 1);
			pi.deleteItem(player, 259, pi.getItemSlot(player,259), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Avantoe Potion (unf)
		if(itemUsed == 261 && usedWith == 227 || itemUsed == 227 && usedWith == 261) {
			pi.addItem(player, 103, 1);
			pi.deleteItem(player, 261, pi.getItemSlot(player,261), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Kwuarm Potion (unf)
		if(itemUsed == 263 && usedWith == 227 || itemUsed == 227 && usedWith == 263) {
			pi.addItem(player, 105, 1);
			pi.deleteItem(player, 263, pi.getItemSlot(player,263), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1); 
			player.requestAnim(363, 0); 
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Cadantine Potion (unf)
		if(itemUsed == 265 && usedWith == 227 || itemUsed == 227 && usedWith == 265) {
			pi.addItem(player, 107, 1);
			pi.deleteItem(player, 265, pi.getItemSlot(player,265), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Dwarf Weed Potion (unf)
		if(itemUsed == 267 && usedWith == 227 || itemUsed == 227 && usedWith == 267) {
			pi.addItem(player, 109, 1);
			pi.deleteItem(player, 267, pi.getItemSlot(player,267), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Torstol Potion (unf)
		if(itemUsed == 269 && usedWith == 227 || itemUsed == 227 && usedWith == 269) {
			pi.addItem(player, 111, 1);
			pi.deleteItem(player, 269, pi.getItemSlot(player,269), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1); 
			player.requestAnim(363, 0); 
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Lantadyme Potion (unf)
		if(itemUsed == 2481 && usedWith == 227 || itemUsed == 227 && usedWith == 2481) {
			pi.addItem(player, 2483, 1);
			pi.deleteItem(player, 2481, pi.getItemSlot(player,2481), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1); 
			player.requestAnim(363, 0); 
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Toadflax Potion (unf)
		if(itemUsed == 2998 && usedWith == 227 || itemUsed == 227 && usedWith == 2998) {
			pi.addItem(player, 3002, 1);
			pi.deleteItem(player, 2998, pi.getItemSlot(player,2998), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1); 
			player.requestAnim(363, 0); 
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Snapdragon Potion (unf)
		if(itemUsed == 3000 && usedWith == 227 || itemUsed == 227 && usedWith == 3000) {
			pi.addItem(player, 3004, 1);
			pi.deleteItem(player, 3000, pi.getItemSlot(player,3000), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0);
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Magic Essence (unf)
		if(itemUsed == 9017 && usedWith == 227 || itemUsed == 227 && usedWith == 9017) {
			pi.addItem(player, 9019, 1);
			pi.deleteItem(player, 9017, pi.getItemSlot(player,9017), 1);
			pi.deleteItem(player, 227, pi.getItemSlot(player,227), 1);  
			player.requestAnim(363, 0); 
			player.frames.playSound(player, 2612, 1, 0);
		}

// finishing potions by GaMePaPa

		//Make Zamorak Brew (3)
		if(itemUsed == 111 && usedWith == 247 || itemUsed == 247 && usedWith == 111) {
			player.addSkillXP(175 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 189, 1);
			pi.deleteItem(player, 247, pi.getItemSlot(player, 247), 1); 
			pi.deleteItem(player, 111, pi.getItemSlot(player,111), 1);   
			player.frames.playSound(player, 2612, 1, 0);
		}

		//Make Magic Potion (3)
		if(itemUsed == 2483 && usedWith == 3138 || itemUsed == 3138 && usedWith == 2483) {
			player.addSkillXP(172.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 3042, 1);
			pi.deleteItem(player, 3138, pi.getItemSlot(player,3138), 1);  
			pi.deleteItem(player, 2483, pi.getItemSlot(player,2483), 1);  
			player.frames.playSound(player, 2612, 1, 0);
		}

		//Make Attack Potion (3)
		if(itemUsed == 91 && usedWith == 221 || itemUsed == 221 && usedWith == 91) {
			player.addSkillXP(25 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 121, 1);
			pi.deleteItem(player, 221, pi.getItemSlot(player,221), 1); 
			pi.deleteItem(player, 91, pi.getItemSlot(player,91), 1);   
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Antipoison Potion (3)
		if(itemUsed == 93 && usedWith == 235 || itemUsed == 235 && usedWith == 93) {
			player.addSkillXP(37.5 ,15);
			player.requestAnim(175, 0);
			pi.addItem(player, 3042, 1);
			pi.deleteItem(player, 235, pi.getItemSlot(player,235), 1);
			pi.deleteItem(player, 93, pi.getItemSlot(player,93), 1);    
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Strength Potion (3)
		if(itemUsed == 95 && usedWith == 225 || itemUsed == 225 && usedWith == 95) {
			player.addSkillXP(50 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 115, 1);
			pi.deleteItem(player, 225, pi.getItemSlot(player,225), 1);
			pi.deleteItem(player, 95, pi.getItemSlot(player,95), 1);    
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Restore Potion (3)
		if(itemUsed == 97 && usedWith == 223 || itemUsed == 223 && usedWith == 97) {
			player.addSkillXP(62.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 127, 1);
			pi.deleteItem(player, 223, pi.getItemSlot(player,223), 1);
			pi.deleteItem(player, 97, pi.getItemSlot(player,97), 1);    
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Energy Potion (3)
		if(itemUsed == 97 && usedWith == 1975 || itemUsed == 1975 && usedWith == 97) {
			player.addSkillXP(67.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 3010, 1);
			pi.deleteItem(player, 1975, pi.getItemSlot(player,1975), 1); 
			pi.deleteItem(player, 97, pi.getItemSlot(player,97), 1);   
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Defence Potion (3)
		if(itemUsed == 99 && usedWith == 239 || itemUsed == 239 && usedWith == 99) {
			player.addSkillXP(75 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 113, 1);
			pi.deleteItem(player, 239, pi.getItemSlot(player,239), 1);
			pi.deleteItem(player, 99, pi.getItemSlot(player,99), 1);    
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Agility Potion (3)
		if(itemUsed == 3002 && usedWith == 2152 || itemUsed == 2152 && usedWith == 3002) {
			player.addSkillXP(80 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 3034, 1);
			pi.deleteItem(player, 2152, pi.getItemSlot(player,2152), 1);
			pi.deleteItem(player, 3002, pi.getItemSlot(player,3002), 1); 
			player.frames.playSound(player, 2612, 1, 0);   
		}
		
		//Make Prayer Potion (3)
		if(itemUsed == 99 && usedWith == 231 || itemUsed == 231 && usedWith == 99) {
			player.addSkillXP(85.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 139, 1);
			pi.deleteItem(player, 231, pi.getItemSlot(player,231), 1);
			pi.deleteItem(player, 99, pi.getItemSlot(player,99), 1);  
			player.frames.playSound(player, 2612, 1, 0);  
		}
		
		//Make Super Attack Potion (3)
		if(itemUsed == 101 && usedWith == 221 || itemUsed == 221 && usedWith == 101) {
			player.addSkillXP(100 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 145, 1);
			pi.deleteItem(player, 221, pi.getItemSlot(player,221), 1);
			pi.deleteItem(player, 101, pi.getItemSlot(player,101), 1); 
			player.frames.playSound(player, 2612, 1, 0);   
		}
		
		//Make Superantipoison Potion (3)
		if(itemUsed == 101 && usedWith == 235 || itemUsed == 235 && usedWith == 101) {
			player.addSkillXP(106 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 181, 1);
			pi.deleteItem(player, 235, pi.getItemSlot(player,235), 1);
			pi.deleteItem(player, 101, pi.getItemSlot(player,101), 1); 
			player.frames.playSound(player, 2612, 1, 0);   
		}
		
		//Make Fishing Potion (3)
		if(itemUsed == 103 && usedWith == 231 || itemUsed == 231 && usedWith == 103) {
			player.addSkillXP(112 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 112, 1);
			pi.deleteItem(player, 231, pi.getItemSlot(player,231), 1); 
			pi.deleteItem(player, 103, pi.getItemSlot(player,103), 1);   
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Super Energy Potion(3)
		if(itemUsed == 103 && usedWith == 2970 || itemUsed == 2970 && usedWith == 103) {
			player.addSkillXP(117.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 3018, 1);
			pi.deleteItem(player, 2970, pi.getItemSlot(player,2970), 1); 
			pi.deleteItem(player, 103, pi.getItemSlot(player,103), 1);
			player.frames.playSound(player, 2612, 1, 0);   
		}
		
		//Make Super Strength Potion (3)
		if (itemUsed == 105 && usedWith == 225 || itemUsed == 225 && usedWith == 105) {
			player.addSkillXP(125 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 157, 1);
			pi.deleteItem(player, 225, pi.getItemSlot(player,225), 1); 
			pi.deleteItem(player, 105, pi.getItemSlot(player,105), 1);   
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Magic Essence Potion (3)
		if (itemUsed == 9019 && usedWith == 9018 || itemUsed == 9018 && usedWith == 9019) {
			player.addSkillXP(130 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 9020, 1);
			pi.deleteItem(player, 9018, pi.getItemSlot(player,9018), 1);
			pi.deleteItem(player, 9019, pi.getItemSlot(player,9019), 1);
			player.frames.playSound(player, 2612, 1, 0);    
		}
		
		//Make Weapon Poison
		if (itemUsed == 105 && usedWith == 241 || itemUsed == 241 && usedWith == 105) {
			player.addSkillXP(137.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 187, 1);
			pi.deleteItem(player, 241, pi.getItemSlot(player,241), 1);
			pi.deleteItem(player, 105, pi.getItemSlot(player,105), 1);    
			player.frames.playSound(player, 2612, 1, 0);
		}
		
		//Make Antifire Potion (3)
		if (itemUsed == 2483 && usedWith == 241 || itemUsed == 221 && usedWith == 2483) {
			player.addSkillXP(157.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 2454, 1);
			pi.deleteItem(player, 241, pi.getItemSlot(player,241), 1); 
			pi.deleteItem(player, 2483, pi.getItemSlot(player,2483), 1); 
			player.frames.playSound(player, 2612, 1, 0);  
		}
		
		//Make Ranging Potion (3)
		if (itemUsed == 109 && usedWith == 245 || itemUsed == 245 && usedWith == 109) {
			player.addSkillXP(162.5 ,15);
			player.requestAnim(363, 0);
			pi.addItem(player, 169, 1);
			pi.deleteItem(player, 245, pi.getItemSlot(player,245), 1);  
			pi.deleteItem(player, 109, pi.getItemSlot(player,109), 1);  
			player.frames.playSound(player, 2612, 1, 0);
		}
// crafting by bloodshotpk//

// leather top
if(itemUsed == 1733 && usedWith == 1741 ) {
player.addSkillXP(50, 12);
pi.addItem(player, 1129, 1);
pi.deleteItem(player, 1741, pi.getItemSlot(player,1741), 1);
pi.deleteItem(player, 1734, pi.getItemSlot(player,1734), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to make a leather top ");
}

// hard leather top
if(itemUsed == 1733 && usedWith == 1743 ) {
if (player.skillLvl[12] <= 30)
player.addSkillXP(500, 12);
pi.addItem(player, 1131, 1);
pi.deleteItem(player, 1743, pi.getItemSlot(player,1743), 1);
pi.deleteItem(player, 1734, pi.getItemSlot(player,1734), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to make a hard leather top ");
}

// green d hide set
if(itemUsed == 1733 && usedWith == 1745 ) {
if (player.skillLvl[12] <= 52)
player.addSkillXP(2000, 12);
pi.addItem(player, 1065, 1);
pi.addItem(player, 1099, 1);
pi.addItem(player, 1135, 1);
pi.deleteItem(player, 1745, pi.getItemSlot(player,1745), 1);
pi.deleteItem(player, 1734, pi.getItemSlot(player,1734), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to make a green d'hide set");
}

// blue d hide set
if(itemUsed == 1733 && usedWith == 2505 ) {
player.addSkillXP(3670, 12);
if (player.skillLvl[12] <= 65)
pi.addItem(player, 2487, 1);
pi.addItem(player, 2493, 1);
pi.addItem(player, 2499, 1);
pi.deleteItem(player, 2505, pi.getItemSlot(player,2505), 1);
pi.deleteItem(player, 1734, pi.getItemSlot(player,1734), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to make a blue d'hide set");
}

// red d hide set
if(itemUsed == 1733 && usedWith == 2507 ) {
player.addSkillXP(5000, 12);
if (player.skillLvl[12] <= 75)
pi.addItem(player, 2489, 1);
pi.addItem(player, 2495, 1);
pi.addItem(player, 2501, 1);
pi.deleteItem(player, 2507, pi.getItemSlot(player,2507), 1);
pi.deleteItem(player, 1734, pi.getItemSlot(player,1734), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to make a red d'hide set");
}

// black d hide set
if(itemUsed == 1733 && usedWith == 2509 ) {
player.addSkillXP(7000, 12);
if (player.skillLvl[12] >= 90)
pi.addItem(player, 1065, 1);
pi.addItem(player, 1099, 1);
pi.addItem(player, 1135, 1);
pi.deleteItem(player, 1743, pi.getItemSlot(player,2509), 1);
pi.deleteItem(player, 1734, pi.getItemSlot(player,1734), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to make a black d'hide set");
}

// saffire
if(itemUsed == 1755 && usedWith == 1623 ) {
player.addSkillXP(100, 12);
pi.addItem(player, 1607, 1);
pi.deleteItem(player, 1623, pi.getItemSlot(player,1623), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to cut a gem");
}

// emerald
if(itemUsed == 1755 && usedWith == 1621 ) {
player.addSkillXP(350, 12);
if (player.skillLvl[12] >= 20)
pi.addItem(player, 1605, 1);
pi.deleteItem(player, 1621, pi.getItemSlot(player,1621), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to cut a gem");
}

// ruby
if(itemUsed == 1755 && usedWith == 1619 ) {
player.addSkillXP(670, 12);
if (player.skillLvl[12] >= 35)
pi.addItem(player, 1603, 1);
pi.deleteItem(player, 1619, pi.getItemSlot(player,1619), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to cut a gem");
}

// red topaz
if(itemUsed == 1755 && usedWith == 1629 ) {
player.addSkillXP(1250, 12);
if (player.skillLvl[12] >= 50)
pi.addItem(player, 1613, 1);
pi.deleteItem(player, 1629, pi.getItemSlot(player,1629), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to cut a gem");
}

// dragon stone
if(itemUsed == 1755 && usedWith == 1631 ) {
player.addSkillXP(5000, 12);
if (player.skillLvl[12] >= 70)
pi.addItem(player, 1615, 1);
pi.deleteItem(player, 1631, pi.getItemSlot(player,1631), 1);
player.requestAnim(881, 0);
player.frames.sendMessage(player, "You use your crafting skill to cut a gem");
}

//end of crafting//

//=========================================Start of Armour Sets=========================================
if(itemUsed == 1755 && usedWith == 11814 || itemUsed == 11814 && usedWith == 1755) {//bronze (l)
pi.deleteItem(player, 11814, pi.getItemSlot(player, 11814), 1);
pi.addItem(player, 1075, 1);//legs
pi.addItem(player, 1117, 1);//body
pi.addItem(player, 1155, 1);//helm
pi.addItem(player, 8844, 1);//defender
pi.addItem(player, 4119, 1);//boots
pi.addItem(player, 12985, 1);//gauntlets
player.frames.sendMessage(player, "You open your Bronze Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11816 || itemUsed == 11816 && usedWith == 1755) {//bronze (sk)
pi.deleteItem(player, 11816, pi.getItemSlot(player, 11816), 1);
pi.addItem(player, 1087, 1);//skirt
pi.addItem(player, 1117, 1);//body
pi.addItem(player, 1155, 1);//helm
pi.addItem(player, 8844, 1);//defender
pi.addItem(player, 4119, 1);//boots
pi.addItem(player, 12985, 1);//gauntlets
player.frames.sendMessage(player, "You open your Bronze Armour Set (sk)");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11818 || itemUsed == 11818 && usedWith == 1755) {//iron (l)
pi.deleteItem(player, 11818, pi.getItemSlot(player, 11818), 1);
pi.addItem(player, 1067, 1);//legs
pi.addItem(player, 1115, 1);//body
pi.addItem(player, 1153, 1);//helm
pi.addItem(player, 8845, 1);//defender
pi.addItem(player, 4121, 1);//boots
pi.addItem(player, 12988, 1);//gauntlets
player.frames.sendMessage(player, "You open your Iron Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11820 || itemUsed == 11820 && usedWith == 1755) {//iron (sk)
pi.deleteItem(player, 11820, pi.getItemSlot(player, 11820), 1);
pi.addItem(player, 1081, 1);//skirt
pi.addItem(player, 1115, 1);//body
pi.addItem(player, 1153, 1);//helm
pi.addItem(player, 8845, 1);//defender
pi.addItem(player, 4121, 1);//boots
pi.addItem(player, 12988, 1);//gauntlets
player.frames.sendMessage(player, "You open your Iron Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11822 || itemUsed == 11822 && usedWith == 1755) {//steel(l)
pi.deleteItem(player, 11822, pi.getItemSlot(player, 11822), 1);
pi.addItem(player, 1069, 1);//legs
pi.addItem(player, 1119, 1);//body
pi.addItem(player, 1157, 1);//helm
pi.addItem(player, 8846, 1);//defender
pi.addItem(player, 4123, 1);//boots
pi.addItem(player, 12991, 1);//gauntlets
player.frames.sendMessage(player, "You open your Steel Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11824 || itemUsed == 11824 && usedWith == 1755) {//steel(sk)
pi.deleteItem(player, 11824, pi.getItemSlot(player, 11824), 1);
pi.addItem(player, 1083, 1);//skirt
pi.addItem(player, 1119, 1);//body
pi.addItem(player, 1157, 1);//helm
pi.addItem(player, 8846, 1);//defender
pi.addItem(player, 4123, 1);//boots
pi.addItem(player, 12991, 1);//gauntlets
player.frames.sendMessage(player, "You open your Steel Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11826 || itemUsed == 11826 && usedWith == 1755) {//black(l)
pi.deleteItem(player, 11826, pi.getItemSlot(player, 11826), 1);
pi.addItem(player, 1077, 1);//legs
pi.addItem(player, 1125, 1);//body
pi.addItem(player, 1165, 1);//helm
pi.addItem(player, 8847, 1);//defender
pi.addItem(player, 4125, 1);//boots
pi.addItem(player, 12994, 1);//gauntlets
player.frames.sendMessage(player, "You open your Black Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11828 || itemUsed == 11828 && usedWith == 1755) {//black(sk)
pi.deleteItem(player, 11828, pi.getItemSlot(player, 11828), 1);
pi.addItem(player, 1089, 1);//skirt
pi.addItem(player, 1125, 1);//body
pi.addItem(player, 1165, 1);//helm
pi.addItem(player, 8847, 1);//defender
pi.addItem(player, 4125, 1);//boots
pi.addItem(player, 12994, 1);//gauntlets
player.frames.sendMessage(player, "You open your Black Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11830 || itemUsed == 11830 && usedWith == 1755) {//Mithril(l)
pi.deleteItem(player, 11830, pi.getItemSlot(player, 11830), 1);
pi.addItem(player, 1071, 1);//legs
pi.addItem(player, 1109, 1);//chainbody
pi.addItem(player, 1159, 1);//helm
pi.addItem(player, 8848, 1);//defender
pi.addItem(player, 4127, 1);//boots
pi.addItem(player, 12997, 1);//gauntlets
player.frames.sendMessage(player, "You open your Mithril Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11832 || itemUsed == 11832 && usedWith == 1755) {//Mithril(sk)
pi.deleteItem(player, 11832, pi.getItemSlot(player, 11832), 1);
pi.addItem(player, 1085, 1);//skirt
pi.addItem(player, 1109, 1);//chainbody
pi.addItem(player, 1159, 1);//helm
pi.addItem(player, 8848, 1);//defender
pi.addItem(player, 4127, 1);//boots
pi.addItem(player, 12997, 1);//gauntlets
player.frames.sendMessage(player, "You open your Mithril Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11834 || itemUsed == 11834 && usedWith == 1755) {//Adamant(l)
pi.deleteItem(player, 11834, pi.getItemSlot(player, 11834), 1);
pi.addItem(player, 1073, 1);//legs
pi.addItem(player, 1124, 1);//body
pi.addItem(player, 1161, 1);//helm
pi.addItem(player, 8849, 1);//defender
pi.addItem(player, 4129, 1);//boots
pi.addItem(player, 13000, 1);//gauntlets
player.frames.sendMessage(player, "You open your Adamant Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11836 || itemUsed == 11836 && usedWith == 1755) {//Adamant(sk)
pi.deleteItem(player, 11836, pi.getItemSlot(player, 11836), 1);
pi.addItem(player, 1091, 1);//skirt
pi.addItem(player, 1124, 1);//body
pi.addItem(player, 1161, 1);//helm
pi.addItem(player, 8849, 1);//defender
pi.addItem(player, 4129, 1);//boots
pi.addItem(player, 13000, 1);//gauntlets
player.frames.sendMessage(player, "You open your Adamant Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11838 || itemUsed == 11838 && usedWith == 1755) {//Rune(l)
pi.deleteItem(player, 11838, pi.getItemSlot(player, 11838), 1);
pi.addItem(player, 1079, 1);//legs
pi.addItem(player, 1127, 1);//body
pi.addItem(player, 1163, 1);//helm
pi.addItem(player, 8850, 1);//defender
pi.addItem(player, 4131, 1);//boots
pi.addItem(player, 13003, 1);//gauntlets
player.frames.sendMessage(player, "You open your Rune Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11840 || itemUsed == 11840 && usedWith == 1755) {//Rune(sk)
pi.deleteItem(player, 11840, pi.getItemSlot(player, 11840), 1);
pi.addItem(player, 1093, 1);//skirt
pi.addItem(player, 1127, 1);//body
pi.addItem(player, 1163, 1);//helm
pi.addItem(player, 8850, 1);//defender
pi.addItem(player, 4131, 1);//boots
pi.addItem(player, 13003, 1);//gauntlets
player.frames.sendMessage(player, "You open your Rune Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11842 || itemUsed == 11842 && usedWith == 1755) {//Dragon(l)
pi.deleteItem(player, 11842, pi.getItemSlot(player, 11842), 1);
pi.addItem(player, 4087, 1);//legs
pi.addItem(player, 3140, 1);//body
pi.addItem(player, 11335, 1);//helm
pi.addItem(player, 1187, 1);//kiteshield
pi.addItem(player, 11732, 1);//boots
pi.addItem(player, 13006, 1);//gauntlets
player.frames.sendMessage(player, "You open your Dragon Armour Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11844 || itemUsed == 11844 && usedWith == 1755) {//Dragon(sk)
pi.deleteItem(player, 11844, pi.getItemSlot(player, 11844), 1);
pi.addItem(player, 4585, 1);//skirt
pi.addItem(player, 3140, 1);//body
pi.addItem(player, 11335, 1);//helm
pi.addItem(player, 1187, 1);//kiteshield
pi.addItem(player, 11732, 1);//boots
pi.addItem(player, 13006, 1);//gauntlets
player.frames.sendMessage(player, "You open your Dragon Armour Set (sk)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11846 || itemUsed == 11846 && usedWith == 1755) {//Barrows - ahrim's set
pi.deleteItem(player, 11846, pi.getItemSlot(player, 11846), 1);
pi.addItem(player, 4714, 1);//skirt
pi.addItem(player, 4712, 1);//body
pi.addItem(player, 4708, 1);//helm
pi.addItem(player, 4710, 1);//staff
player.frames.sendMessage(player, "You open your ahrim's set...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11848 || itemUsed == 11848 && usedWith == 1755) {//Barrows - dharok's set
pi.deleteItem(player, 11848, pi.getItemSlot(player, 11848), 1);
pi.addItem(player, 4722, 1);//legs
pi.addItem(player, 4720, 1);//body
pi.addItem(player, 4716, 1);//helm
pi.addItem(player, 4718, 1);//axe
player.frames.sendMessage(player, "You open your dharok's set...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11850 || itemUsed == 11850 && usedWith == 1755) {//Barrows - guthan's set
pi.deleteItem(player, 11850, pi.getItemSlot(player, 11850), 1);
pi.addItem(player, 4730, 1);//skirt
pi.addItem(player, 4728, 1);//body
pi.addItem(player, 4724, 1);//helm
pi.addItem(player, 4726, 1);//spear
player.frames.sendMessage(player, "You open your guthan's set...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11852 || itemUsed == 11852 && usedWith == 1755) {//Barrows - karil's set
pi.deleteItem(player, 11852, pi.getItemSlot(player, 11852), 1);
pi.addItem(player, 4738, 1);//skirt
pi.addItem(player, 4736, 1);//body
pi.addItem(player, 4732, 1);//coif
pi.addItem(player, 4734, 1);//crossbow
pi.addItem(player, 4740, 2147000000);//boltrack
player.frames.sendMessage(player, "You open your karil's set...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11854 || itemUsed == 11854 && usedWith == 1755) {//Barrows - torag's set
pi.deleteItem(player, 11854, pi.getItemSlot(player, 11854), 1);
pi.addItem(player, 4751, 1);//legs
pi.addItem(player, 4749, 1);//body
pi.addItem(player, 4745, 1);//helm
pi.addItem(player, 4747, 1);//hammers
player.frames.sendMessage(player, "You open your torag's set...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11856 || itemUsed == 11856 && usedWith == 1755) {//Barrows - verac's set
pi.deleteItem(player, 11856, pi.getItemSlot(player, 11856), 1);
pi.addItem(player, 4759, 1);//skirt
pi.addItem(player, 4757, 1);//brassard
pi.addItem(player, 4753, 1);//helm
pi.addItem(player, 4755, 1);//flail
player.frames.sendMessage(player, "You open your verac's set...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11874 || itemUsed == 11874 && usedWith == 1755) {//Infinity Set
pi.deleteItem(player, 11874, pi.getItemSlot(player, 11874), 1);
pi.addItem(player, 6924, 1);//bottom
pi.addItem(player, 6916, 1);//top
pi.addItem(player, 6918, 1);//hat
pi.addItem(player, 6920, 1);//boots
pi.addItem(player, 6922, 1);//gloves
player.frames.sendMessage(player, "You open your Infinity Robes Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11938 || itemUsed == 11938 && usedWith == 1755) {//Gilded Set
pi.deleteItem(player, 11938, pi.getItemSlot(player, 11938), 1);
pi.addItem(player, 3483, 1);//platelegs
pi.addItem(player, 3481, 1);//platebody
pi.addItem(player, 3486, 1);//helm
pi.addItem(player, 3488, 1);//shield
player.frames.sendMessage(player, "You open your Gilded Set (l)...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11860 || itemUsed == 11860 && usedWith == 1755) {//Third Age Range
pi.deleteItem(player, 11860, pi.getItemSlot(player, 11860), 1);
pi.addItem(player, 10332, 1);//platelegs
pi.addItem(player, 10330, 1);//platebody
pi.addItem(player, 10334, 1);//helm
pi.addItem(player, 10336, 1);//gloves
pi.addItem(player, 10344, 1);//amulet
player.frames.sendMessage(player, "You open your 3rd Age Range Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11858 || itemUsed == 11858 && usedWith == 1755) {//Third Age Melee
pi.deleteItem(player, 11858, pi.getItemSlot(player, 11858), 1);
pi.addItem(player, 10346, 1);//platelegs
pi.addItem(player, 10348, 1);//platebody
pi.addItem(player, 10350, 1);//helm
pi.addItem(player, 10352, 1);//shield
pi.addItem(player, 10344, 1);//amulet
player.frames.sendMessage(player, "You open your 3rd Age Melee Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11862 || itemUsed == 11862 && usedWith == 1755) {//Third Age Mage
pi.deleteItem(player, 11862, pi.getItemSlot(player, 11862), 1);
pi.addItem(player, 10338, 1);//bottom
pi.addItem(player, 10340, 1);//top
pi.addItem(player, 10342, 1);//hat
pi.addItem(player, 10344, 1);//amulet
player.frames.sendMessage(player, "You open your 3rd Age Mage Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11967 || itemUsed == 11967 && usedWith == 1755) {//Cannon
pi.deleteItem(player, 11967, pi.getItemSlot(player, 11967), 1);
pi.addItem(player, 2, 2147000000);//cannonballs
pi.addItem(player, 6, 1);//base
pi.addItem(player, 8, 1);//stand
pi.addItem(player, 10, 1);//barrels
pi.addItem(player, 12, 1);//furnace
player.frames.sendMessage(player, "You open your Cannon Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11962 || itemUsed == 11962 && usedWith == 1755) {//Dark Mystic Set
pi.deleteItem(player, 11962, pi.getItemSlot(player, 11962), 1);
pi.addItem(player, 4103, 1);//bottom
pi.addItem(player, 4101, 1);//top
pi.addItem(player, 4099, 1);//hat
pi.addItem(player, 4107, 1);//boots
pi.addItem(player, 4105, 1);//gloves
player.frames.sendMessage(player, "You open your Dark Mystic Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11960 || itemUsed == 11960 && usedWith == 1755) {//Light Mystic Set
pi.deleteItem(player, 11960, pi.getItemSlot(player, 11960), 1);
pi.addItem(player, 4113, 1);//bottom
pi.addItem(player, 4111, 1);//top
pi.addItem(player, 4109, 1);//hat
pi.addItem(player, 4117, 1);//boots
pi.addItem(player, 4115, 1);//gloves
player.frames.sendMessage(player, "You open your Light Mystic Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11872 || itemUsed == 11872 && usedWith == 1755) {//Mystic Set
pi.deleteItem(player, 11872, pi.getItemSlot(player, 11872), 1);
pi.addItem(player, 4093, 1);//bottom
pi.addItem(player, 4091, 1);//top
pi.addItem(player, 4089, 1);//hat
pi.addItem(player, 4097, 1);//boots
pi.addItem(player, 4095, 1);//gloves
player.frames.sendMessage(player, "You open your Mystic Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11930 || itemUsed == 11930 && usedWith == 1755) {//Zamorak Set
pi.deleteItem(player, 11930, pi.getItemSlot(player, 11930), 1);
pi.addItem(player, 2655, 1);//platelegs
pi.addItem(player, 2653, 1);//platebody
pi.addItem(player, 2657, 1);//helm
pi.addItem(player, 2659, 1);//shield
player.frames.sendMessage(player, "You open your Zamorak Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11926 || itemUsed == 11926 && usedWith == 1755) {//Guthix Set
pi.deleteItem(player, 11926, pi.getItemSlot(player, 11926), 1);
pi.addItem(player, 2671, 1);//platelegs
pi.addItem(player, 2669, 1);//platebody
pi.addItem(player, 2673, 1);//helm
pi.addItem(player, 2675, 1);//shield
player.frames.sendMessage(player, "You open your Guthix Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
if(itemUsed == 1755 && usedWith == 11928 || itemUsed == 11928 && usedWith == 1755) {//Saradomin Set
pi.deleteItem(player, 11928, pi.getItemSlot(player, 11928), 1);
pi.addItem(player, 2663, 1);//platelegs
pi.addItem(player, 2661, 1);//platebody
pi.addItem(player, 2665, 1);//helm
pi.addItem(player, 2667, 1);//shield
player.frames.sendMessage(player, "You open your Saradomin Set ...");
player.frames.sendMessage(player, "...You recive your items");
}
//=========================================end of amour sets=========================================
/**
		 * Dragonfire Shield Making.
		 * 
		 * Using the anti-dragon shield with a draconic visage.
		 */
		if (itemUsed == 1540 && usedWith == 11286 || itemUsed == 11286 && usedWith == 1540) {//Dragonfire Shield Making
			pi.deleteItem(player, 11286, pi.getItemSlot(player, 11928), 1);
			pi.deleteItem(player, 1540, pi.getItemSlot(player, 1540), 1);
			pi.addItem(player, 11283, 1);
			player.frames.sendMessage(player, "You mend the pieces together ...");
			player.frames.sendMessage(player, "...You recive your Dragon-Fire Shield");
		}

		/**
		 * GodSword Making.
		 * 
		 * Combining shards to make a GodSword blade then attaching to a hilt.
		 */
		if (itemUsed == 11710 && usedWith == 11712 || itemUsed == 11712 && usedWith == 11710) {//Godsword Shards Making
			pi.deleteItem(player, 11710, pi.getItemSlot(player, 11710), 1);
			pi.deleteItem(player, 11712, pi.getItemSlot(player, 11712), 1);
			pi.addItem(player, 11686, 1);
		}

		if (itemUsed == 11710 && usedWith == 11714 || itemUsed == 11714 && usedWith == 11710) {//Godsword Shards Making
			pi.deleteItem(player, 11710, pi.getItemSlot(player, 11710), 1);
			pi.deleteItem(player, 11714, pi.getItemSlot(player, 11714), 1);
			pi.addItem(player, 11688, 1);
		}

		if (itemUsed == 11714 && usedWith == 11712 || itemUsed == 11712 && usedWith == 11714) {//Godsword Shards Making
			pi.deleteItem(player, 11714, pi.getItemSlot(player, 11714), 1);
			pi.deleteItem(player, 11712, pi.getItemSlot(player, 11712), 1);
			pi.addItem(player, 11692, 1);
		}

		if (itemUsed == 11710 && usedWith == 11692 || itemUsed == 11692 && usedWith == 11710 || itemUsed == 11686 && usedWith == 11714 || itemUsed == 11714 && usedWith == 11686 || itemUsed == 11686 && usedWith == 11712 || itemUsed == 11712 && usedWith == 11686 || itemUsed == 11688 && usedWith == 11712 || itemUsed == 11712 && usedWith == 11688) {
			pi.deleteItem(player, 11710, pi.getItemSlot(player, 11710), 1);
			pi.deleteItem(player, 11692, pi.getItemSlot(player, 11692), 1);
			pi.addItem(player, 11690, 1);
		}

		if (itemUsed == 11690 && usedWith == 11702 || itemUsed == 11702 && usedWith == 11690) {//Armadyl Godsword
			pi.deleteItem(player, 11690, pi.getItemSlot(player, 11690), 1);
			pi.deleteItem(player, 11702, pi.getItemSlot(player, 11702), 1);
			pi.addItem(player, 11694, 1);
			player.frames.sendMessage(player, "You mend the pieces together ...");
			player.frames.sendMessage(player, "...You recive your Armadyl Godsword");
		}

		if (itemUsed == 11690 && usedWith == 11704 || itemUsed == 11704 && usedWith == 11690) {//Bandos GodSword
			pi.deleteItem(player, 11690, pi.getItemSlot(player, 11690), 1);
			pi.deleteItem(player, 11704, pi.getItemSlot(player, 11704), 1);
			pi.addItem(player, 11696, 1);
			player.frames.sendMessage(player, "You mend the pieces together ...");
			player.frames.sendMessage(player, "...You recive your Bandos Godsword");
		}

		if (itemUsed == 11690 && usedWith == 11706 || itemUsed == 11706 && usedWith == 11690) {//Saradomin GodSword
			pi.deleteItem(player, 11690, pi.getItemSlot(player, 11690), 1);
			pi.deleteItem(player, 11706, pi.getItemSlot(player, 11706), 1);
			pi.addItem(player, 11698, 1);
			player.frames.sendMessage(player, "You mend the pieces together ...");
			player.frames.sendMessage(player, "...You recive your Saradomin Godsword");
		}

		if (itemUsed == 11690 && usedWith == 11708 || itemUsed == 11708 && usedWith == 11690) {//Zamorak GodSword
			pi.deleteItem(player, 11690, pi.getItemSlot(player, 11690), 1);
			pi.deleteItem(player, 11708, pi.getItemSlot(player, 11708), 1);
			pi.addItem(player, 11700, 1);
			player.frames.sendMessage(player, "You mend the pieces together ...");
			player.frames.sendMessage(player, "...You recive your Zamorak Godsword");
		}

		/**
		 * Blessed spirit shield making.
		 * 
		 * Using the regular or blessed spirit shield with a sigil.
		 */
		if (itemUsed == 13734 && usedWith == 13754 || itemUsed == 13754 && usedWith == 13734) {
			pi.deleteItem(player, 13734, pi.getItemSlot(player, 13734), 1);
			pi.deleteItem(player, 13754, pi.getItemSlot(player, 13754), 1);
			pi.addItem(player, 13736, 1);
		}

		/**
		 * Spirit Shield Making.
		 * 
		 * Using the regular or blessed spirit shield with a sigil.
		 */
		if (itemUsed == 13736 && usedWith == 13746 || itemUsed == 13746 && usedWith == 13736) {//Arcane Spirit Shield
			pi.deleteItem(player, 13736, pi.getItemSlot(player, 13736), 1);
			pi.deleteItem(player, 13746, pi.getItemSlot(player, 13746), 1);
			pi.addItem(player, 13738, 1);
		}

		if (itemUsed == 13736 && usedWith == 13748 || itemUsed == 13748 && usedWith == 13736) {//Divine Spirit Shield
			pi.deleteItem(player, 13748, pi.getItemSlot(player, 13748), 1);
			pi.deleteItem(player, 13736, pi.getItemSlot(player, 13736), 1);
			pi.addItem(player, 13740, 1);
		}

		if (itemUsed == 13736 && usedWith == 13750 || itemUsed == 13750 && usedWith == 13736) {//Elysian Spirit Shield
			pi.deleteItem(player, 13750, pi.getItemSlot(player, 13750), 1);
			pi.deleteItem(player, 13736, pi.getItemSlot(player, 13736), 1);
			pi.addItem(player, 13742, 1);
		}

		if (itemUsed == 13736 && usedWith == 13752 || itemUsed == 13752 && usedWith == 13736) {//Spectral Spirit Shield
			pi.deleteItem(player, 13752, pi.getItemSlot(player, 13752), 1);
			pi.deleteItem(player, 13736, pi.getItemSlot(player, 13736), 1);
			pi.addItem(player, 13744, 1);
		}

		System.out.println("used with: "+usedWith+" itemUsed: "+itemUsed);
	}

}